package com.haizhi.crm.biz.constant;

/**
 * Created by wangshan on 2018/6/8.
 */
public enum ShareType {

    CUSTOMER("Customer", "其他用户分享客户" ),
    PRODUCT("Product_Service", "其他用户分享产品" ),
    OUTER("tv_outer_event", "其他用户分享事件" ),
    INNER("tv_inner_event", "其他用户分享事件" ),
    VISIT("tv_visit_record", "其他用户分享拜访日程" );

    private String shareTypeName;

    private String msgType;

    ShareType(String shareTypeName, String msgType) {
        this.shareTypeName = shareTypeName;
        this.msgType = msgType;
    }

    public static String getMsgTypeByShare(String shareTypeName) {
        for (ShareType shareType : ShareType.values()) {
            if (shareType.shareTypeName.equals(shareTypeName)) {
                return shareType.msgType;
            }
        }
        return "分享";
    }


}
